package book_management.user.operation.impl;

import book_management.user.book.BookList;
import book_management.user.operation.IOperation;

public class UpdateOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("请现在正在进行的是书籍的更新工作");
        System.out.println("请输入您要更新的书籍名称：");
        String booksName=scanner.next();
        System.out.println("请输入您要修改的价格：");
        Double price=scanner.nextDouble();
        System.out.println("请输入您要修改的类型：");
        String type=scanner.next();
        bookList.updateBook(booksName,price,type);
        System.out.println("书籍更新成功");
    }
}
